package com.dc.project_kotlin.bean

import com.dc.base.network.BaseResponse

data class ApiResponse<T>(val errorCode:Int, var errorMsg: String, val data:T) : BaseResponse<T> {
    override fun isSuccess() = errorCode == 0

    override fun getResponseData() = data

    override fun getResponseCode() = errorCode

    override fun getResponseMsg() = errorMsg
}